package com.example.pet.entity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * �������(Post)表实体类
 *
 * @author makejava
 * @since 2023-05-13 10:46:45
 */
@SuppressWarnings("serial")
@Data
@ApiModel(description = "互动")
public class Post  {
    @ApiModelProperty(value = "互动id",position = 1)
    private Integer postId;
    @ApiModelProperty(value = "用户id",position = 2)
    private Integer userId;
    @TableField(exist = false)
    @ApiModelProperty(value = "用户头像",position = 9)
    private String userImage;
    @TableField(exist = false)
    @ApiModelProperty(value = "用户名字",position = 9)
    private String userName;
    @ApiModelProperty(value = "内容",position = 3)
    private String content;
    @ApiModelProperty(value = "时间",position = 4)
    private Date postDate;

    public List<String> getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image.add(image);
    }

    @ApiModelProperty(value = "图片",position = 8)
    @TableField(exist = false)
    private List<String> image =new ArrayList<String>();
    @ApiModelProperty(value = "点赞",position = 5)
    private Integer thumbsUp;

    @ApiModelProperty(value = "评论",position = 6)
    @TableField(exist = false)
    private Integer comment;
    @ApiModelProperty(value = "收藏",position = 7)
    @TableField(exist = false)
    private Integer collect;


}

